package com.hxkj.dao;

import com.hxkj.domain.po.Department;
import java.util.List;

/**
* 数据操作接口
*
* @author: chenwei
* @version: 1.0
* @datetime: 2018-05-21 17:59:26
*
*/
public interface DepartmentDao {

    /**
    *
    * 根据主键查询Department对象
    *
    * @param departmentId
    * @return Department对象
    */
    Department get(Long departmentId);

    /**
    *
    * 根据查询条件查询符合条件的Department对象
    *
    * @param department
    * @return 符合条件的Department对象List
    */
    List<Department> get(Department department);

    /**
    *
    * 根据主键删除Department对象
    *
    * @param departmentId
    * @return 影响条件数
    */
    int delete(Long departmentId);

    /**
    *
    * 根据条件删除符合条件的Department对象
    *
    * @param department
    * @return 影响条件数
    */
    int delete(Department department);

    /**
    *
    * 插入Department对象
    *
    * @param department
    * @return 影响条件数
    */
    int save(Department department);

    /**
    *
    * 更新Department对象
    *
    * @param department
    * @return 影响条件数
    */
    int update(Department department);

}
